package com.xinqi.modules.user.user.dto.req;

import com.xinqi.common.base.enums.YesNoEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author linkai
 * @date 2023/4/27
 */
@Data
@Schema(description = "设置管理员-请求对象")
public class SetAdminDTO {

    @Schema(description = "用户ID", example = "100001")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "是否管理员", example = "1")
    @NotNull(message = "是否管理员不能为空")
    private YesNoEnum isAdmin;

}
